package com.enjoyor.soa.traffic.rest.efoms.dubbo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.efoms.VideoRelationInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboVideoRelationInfoService;
import com.enjoyor.soa.traffic.rest.efoms.dubbo.IVideoRelationInfoConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class VideoRelationInfoConsumeService implements IVideoRelationInfoConsumeService{

	@Reference(version = "1.0.0", timeout = 10000)
	private IDubboVideoRelationInfoService dubboVideoRelationInfoService;
	@Override
	public ResultPojo getVideoRelationInfo(String videoRelationId) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboVideoRelationInfoService.getVideoRelationInfo(videoRelationId);
		return resultPojo;
	}

	@Override
	public ResultPojo getVideoRelationPage(String videoRelationId, String videoGroupId,String key,Page page) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboVideoRelationInfoService.getVideoRelationPage(videoRelationId, videoGroupId,key,page);
		return resultPojo;
	}

	@Override
	public ResultPojo getVideoRelationList(String videoRelationId, String videoGroupId,String key) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboVideoRelationInfoService.getVideoRelationList(videoRelationId, videoGroupId,key);
		return resultPojo;
	}

	@Override
	public ResultPojo insertVideoRelationInfo(List<VideoRelationInfoDto> rltList,String videoGroupId, String userName) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboVideoRelationInfoService.insertVideoRelationInfo(rltList,videoGroupId,userName);
		return resultPojo;
	}

	@Override
	public ResultPojo updateVideoRelationInfo(VideoRelationInfoDto videoRelationInfoDto, String userName) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboVideoRelationInfoService.updateVideoRelationInfo(videoRelationInfoDto, userName);
		return resultPojo;
	}

	@Override
	public ResultPojo deleteVideoRelationInfo(String videoGroupId, String userName) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboVideoRelationInfoService.deleteVideoRelationInfo(videoGroupId, userName);
		return resultPojo;
	}

	@Override
	public ResultPojo deleteVideoReletionByGroupIdAndVideoId(List<VideoRelationInfoDto> listVideoRelationInfoDto,
			String userName) {
		// TODO Auto-generated method stub
		return dubboVideoRelationInfoService.deleteVideoReletionByGroupIdAndVideoId(listVideoRelationInfoDto, userName);
	}

}
